package cn.getech.data.development.constant;

import lombok.Getter;

/**
 * 一星期七天
 */
@Getter
public enum SevenDaysTypeEnum {
    ONE(1,"一"),
    TWO(2,"二"),
    THREE(3,"三"),
    FOUR(4,"四"),
    FIVE(5,"五"),
    SIX(6,"六"),
    SEVEN(7,"日");


    int code ;
    String msg;
    SevenDaysTypeEnum(int code, String msg){
        this.code=code;
        this.msg=msg;
    }

    public static SevenDaysTypeEnum ObjOf(Integer code ){
        if (code == null) {
            return null;
        } else {
            for (SevenDaysTypeEnum s : SevenDaysTypeEnum.values()) {
                if (s.getCode() == code) {
                    return s;
            }
            }
            return null;
        }

    }


}
